package com.tsinghua.discharge.dao;

import com.tsinghua.discharge.model.GcamData;
import com.tsinghua.discharge.model.GcamDataKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface GcamDataMapper {
    int deleteByPrimaryKey(GcamDataKey key);

    int insert(GcamData record);

    int insertSelective(GcamData record);

    GcamData selectByPrimaryKey(GcamDataKey key);

    int updateByPrimaryKeySelective(GcamData record);

    int updateByPrimaryKey(GcamData record);
    int deleteBySector(@Param( "sector") String sector, @Param("userId") Integer userId);
}